package edu.ntu.cloudroid.xacml;

public class XACMLStrings
{
   // Namespaces
   public static final String BASE_NS = "urn:cloudroid:";
   private static final String FUNCTION_NS = BASE_NS + "function:";
   private static final String ID_NS = BASE_NS + "id:";
   private static final String OBLIGATION_NS = BASE_NS + "obligation:";
   private static final String ALGORITHM_NS = BASE_NS + "algorithm:";
   public static final String POLICY_NS = BASE_NS + "policy:";

   public static final String CATEGORY_ACCESS_SUBJECT = "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject";

   // Commonly used IDs
   public static final String SUBJECT_ID = "urn:oasis:names:tc:xacml:1.0:subject:subject-id";
   public static final String RESOURCE_ID = "urn:oasis:names:tc:xacml:1.0:resource:resource-id";
   public static final String ACTION_ID = "urn:oasis:names:tc:xacml:1.0:action:action-id";

   // Functions
   public static final String FN_GroupContainsKey = FUNCTION_NS
         + "group-contains-key";
   public static final String FN_SubjectIsFriendOfResource = FUNCTION_NS
         + "subject-is-friend-of-resource";
   public static final String FN_SubjectWithinRadiusOfResource = FUNCTION_NS
         + "subject-within-radius-of-resource";
   public static final String FN_SubjectInLocalityOfResource = FUNCTION_NS
         + "subject-in-locality-of-resource";
   public static final String FN_SubjectInTimeBoundsOfResource = FUNCTION_NS
         + "subject-in-time-bounds-of-resource";
 
  
   // Attributes
   public static final String ATTR_Latitude = ID_NS + "latitude";
   public static final String ATTR_Longitude = ID_NS + "longitude";
   public static final String ATTR_Place = ID_NS + "place-name";
   
   public static final String ATTR_Time = ID_NS + "time";
   public static final String ATTR_Granularity = ID_NS + "granularity";
   
   public static final String ATTR_Filtering_Cond = ID_NS +"filtering-cond";
   public static final String ATTR_Filtering_Val = ID_NS + "filtering-val";
   
   public static final String ATTR_Filtering_ColumnIdx = ID_NS + "filtering-col-index";
   
   public static final String ATTR_Stat_FunctionId = ID_NS + "stat-funcId";
   public static final String ATTR_Similarity_FunctionId = ID_NS + "similarity-funcId";
   public static final String ATTR_Similarity_Range = ID_NS + "similarity-range";
   
   public static final String ATTR_SW_size = ID_NS+"sliding-window-size";
   public static final String ATTR_SW_start = ID_NS+"sliding-window-start";
   public static final String ATTR_SW_advance = ID_NS+"sliding-window-advance";
   public static final String ATTR_Input_Required = ID_NS+"is-input-required";
   
   public static final String ATTR_HeartRate = ID_NS + "heartrate";
   public static final String ATTR_BloodPressure = ID_NS + "bloodpressure";
   public static final String ATTR_Speed = ID_NS + "speed";
   public static final String ATTR_Landmarks = ID_NS + "landmarks";

   public static final String ATTR_GetLatest = ID_NS +"get-latest";
   
   // Algorithm identifiers
   public static final String ALG_ClouDroidAlgorithm = ALGORITHM_NS
         + "cloudroid-algorithm";
public static final String ATTR_Date = ID_NS + "date";
}
